Class PolicyClassSetDscpImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.PolicyClassSetDscpImpl
All Implemented Interfaces:
IPCObject, PolicyClassSetDscp

public class PolicyClassSetDscpImpl extends IPCObjectImpl implements PolicyClassSetDscp
Information provided by the PKI file:

    \class PolicyClassSetDscp
    
    \brief PolicyClassSetDscp handles and manipulates policy-map class DSCP and IP precedence.
    
    \example network().getDevice("Router0").getPolicyMapManager().getPolicyMapAt(0).getClassAt(0).getSetDscpPrec()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getType

      public WredType getType()
      Information provided by the PKI file:
      
          \brief Returns the policy map class type.
          
          \return QoS::EWredType,     the QoS policy type.
          QoS policy types:   eWredDscp = 0,
          eWredPrec = 1
          
              
      Specified by:
      getType in interface PolicyClassSetDscp
      Returns:
      WredType Returns a WredType
    • isIpv4Only

      public boolean isIpv4Only()
      Information provided by the PKI file:
      
          \brief Returns true if the policy map class is for IPv4 only, otherwise false.
          
          \return bool, true if the policy map class is for IPv4 only, otherwise false.
          
              
      Specified by:
      isIpv4Only in interface PolicyClassSetDscp
      Returns:
      boolean Returns a boolean
    • getValue

      public int getValue()
      Information provided by the PKI file:
      
          \brief Returns the value of the DSCP or IP precedence.
          
          \return int, the value of the DSCP or IP precedence.
          
              
      Specified by:
      getValue in interface PolicyClassSetDscp
      Returns:
      int Returns a int
    • update

      public void update(WredType type, boolean ipv4Only, int value)
      Information provided by the PKI file:
      
          \brief Updates the policy map class with the specified type and value.
          
          \param QoS::EWredType,      the QoS policy type.
          QoS policy types:   eWredDscp = 0,
          eWredPrec = 1
          \param ipv4Only, true for IPv4 only, false for IPv4 and IPv6.
          \param value, the value for the QoS policy type.
          
              
      Specified by:
      update in interface PolicyClassSetDscp
      Parameters:
      type - Takes in a parameter of type
      ipv4Only - Takes in a parameter of ipv4Only
      value - Takes in a parameter of value
    • toString

      public String toString(boolean showIpType)
      Information provided by the PKI file:
      
          \brief Returns the output of the policy map class.
          
          \param showIpType, true to display the ip type, false to not display it.
          
          \return string, the output of the policy map class.
          
              
      Specified by:
      toString in interface PolicyClassSetDscp
      Parameters:
      showIpType - Takes in a parameter of showIpType
      Returns:
      String Returns a String